#ifndef __mid_uart_h__
#define __mid_uart_h__

#include "ac7803x.h"
// #include "lpuart_driver.h"

// enum
// {
//     INST_LPUART0 = 0,
//     INST_LPUART1,
//     INST_LPUART2,
//     MAX_INST_LPUART
// };
// extern uint8_t lpuart_revdata[3];
// extern boolean LPUART_InitIf(const uint8_t port,const lpuart_user_config_t * lpuartUserConfig, uint8_t priority, uart_callback_t pfnTxCB,uart_callback_t pfnRxCB); 
// extern boolean LPUART_Deinit( const uint8_t port ); 
// extern void LPUART_InstallReceiveData(uint8_t port);
// extern boolean LPUART_WriteByte(uint8_t port, const uint8_t * txBuff, uint32_t txSize);
// extern boolean LPUART_Write(uint8_t port, const uint8_t * txBuff, uint32_t txSize);
// extern boolean LPUART_IsCanSend(uint8_t port);

extern void UART0_Init(void);
extern uint8_t UART0_WriteByte(uint8_t data);
extern uint16_t UART0_Write(uint8_t data[], uint8_t data_len);
extern void UART0_DeInit(void);
extern void upgrade_SysReset(void);

#endif
